package com.heima.proxy;

import com.heima.real.SuperStar;
import com.heima.service.Sing;

//代理对象
public class ProxyStar implements Sing {
    SuperStar superStar;

    public ProxyStar(SuperStar superStar) {
        this.superStar = superStar;
    }


    @Override
    public void sing() {
        System.out.println("签约");
        superStar.sing();
        System.out.println("给钱");
    }
}
